package br.com.segpswd.model;

import java.io.Serializable;

import org.droidpersistence.annotation.Column;
import org.droidpersistence.annotation.ForeignKey;
import org.droidpersistence.annotation.Table;
import org.droidpersistence.model.BaseModel;

@Table(name="CONTA")
public class Conta implements Serializable {

	/**
	 * 
	 */

	@Column(name="_id")
	private long id;

	@Column(name="nome")
	private String nome;
	
	@Column(name="descricao")
	private String descricao;
	
	@Column(name="CATEGORIA_ID")
	@ForeignKey(tableReference="CATEGORIA", onDeleteCascade=true)
	private long categoria_id;
	
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getDescricao() {
		return descricao;
	}
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}
	
	public long getCategoria_id() {
		return categoria_id;
	}
	public void setCategoria_id(long categoria_id) {
		this.categoria_id = categoria_id;
	}

	public long getId()
	  {
	    return this.id;
	  }

	  public void setId(long id) {
	    this.id = id;
	  }
	
}
